package com.yhg.context;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.CrossOrigin;

@SpringBootApplication
@ComponentScan(basePackages = {"com.yhg"})   //common一来引入了，然后这个是扫描策略，之后就可以使用自动填充了，但是R这个好像是只要引入就可以了
@EnableDiscoveryClient   //Nacos
@EnableFeignClients("com.yhg.context.feign")    //远程调用feign+路径
public class WeiyiContextApplication {

    public static void main(String[] args) {
        SpringApplication.run(WeiyiContextApplication.class, args);
    }

}
